home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / ElementTable$ElemAttrListCellDialog.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  2.0 KB  |  52 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.app.DialogFactory;
  4. import com.extensibility.xml.AttributeDeclaration;
  5. import com.extensibility.xml.ParserException;
  6. import javax.swing.JFrame;
  7.  
  8. public class ElementTable$ElemAttrListCellDialog extends AttrListCellDialog {
  9.    // $FF: synthetic field
  10.    final ElementTable this$0;
  11.    int row;
  12.    int column;
  13.  
  14.    public ElementTable$ElemAttrListCellDialog(ElementTable var1, JFrame var2, SchemaDoc var3, AttrListQlicker var4, AttributeDeclaration.Owner var5, String var6) {
  15.       super(var2, var3, var4, var5, false, var6);
  16.       this.this$0 = var1;
  17.    }
  18.  
  19.    void setTableInfo(int var1, int var2) {
  20.       this.row = var1;
  21.       this.column = var2;
  22.    }
  23.  
  24.    protected void doApply() {
  25.       try {
  26.          ((CellDialog)this).getSchemaDoc().checkAttrList(((CellDialog)this).getText());
  27.          this.this$0.getModel().setValueAt(((CellDialog)this).getText(), this.row, this.column);
  28.          super.doApply();
  29.       } catch (ParserException var2) {
  30.          DialogFactory.showValidation(this, var2.getMessage(), false);
  31.       }
  32.  
  33.    }
  34.  
  35.    protected boolean doSave() {
  36.       try {
  37.          ((CellDialog)this).getSchemaDoc().checkAttrList(((CellDialog)this).getText());
  38.          this.this$0.getModel().setValueAt(((CellDialog)this).getText(), this.row, this.column);
  39.          if (this.this$0.getCellEditor() instanceof AttrListQlicker) {
  40.             ((AttrListQlicker)this.this$0.getCellEditor()).setText(((CellDialog)this).getText());
  41.          }
  42.  
  43.          boolean var1 = true;
  44.          return var1;
  45.       } catch (ParserException var3) {
  46.          DialogFactory.showValidation(this, var3.getMessage(), false);
  47.          boolean var2 = false;
  48.          return var2;
  49.       }
  50.    }
  51. }
  52.